package com.pujiewang.gateway.util;

import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @ClassName ConfigHelper
 * @Description 请求放行配置工具类
 * @Author renminghe
 * @Date 2023/6/5 17:04
 **/
@Component
@Log4j2
public class ConfigHelper implements CommandLineRunner {
    @Value("${permit.path}")
    private String permitPath;

    @Override
    public void run(String... args) {
        init();
    }

    private void init() {

    }

    public String getConfig() {

        return permitPath;
    }
}
